package com.cskaoyan.order.dal.persistence;


import com.cskaoyan.order.dal.entitys.Order;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OrderMapper extends Mapper<Order> {

    Long countAll();

    void updateOrderStatus(@Param("status") Integer status, @Param("orderId") String orderId);

    List<Order> selectAllOrderByUserId(@Param("userId") Long userId);

}